//
//  classifyView.m
//  TravelToHelp
//
//  Created by lanou3g on 15/11/5.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "ClassifyView.h"

@implementation ClassifyView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self addclassifyBtn];
    }
    return self;
}

- (void)addclassifyBtn
{
    for (int i = 0; i < 3; i++) {
        UIButton *tempBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        tempBtn.frame = CGRectMake(5 + kScreenWidth / 4 * i, 5, kScreenWidth / 4 - 10, 70);
        tempBtn.backgroundColor = [UIColor blueColor];
        [self addSubview:tempBtn];
        tempBtn.tag = i;
    }
    self.voiceBtn = (UIButton *)[self viewWithTag:1];
    self.radioBtn = (UIButton *)[self viewWithTag:2];
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
